package com.zboin.ucenter.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * @author zhboom
 * @date 2025/7/13 15:16
 */
@TableName(schema = "user_center", value = "user_info")
public class UserInfo implements Serializable {

    @TableId(value = "user_id")
    private Long userId;
    @TableField(value = "username")
    private String username;
    @TableField(value = "phone")
    private String phone;
    @TableField(value = "password")
    private String password;
    @TableLogic(value = "1", delval = "0")
    private Integer isValid;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    @Override
    public String toString() {
        return "UserInfo{" + "userId=" + userId + ", username='" + username + '\'' + ", password='" + password + '\'' + '}';
    }
}
